package pers.xukai.common.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import pers.xukai.common.constant.GlobalConstant;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @author : 殷绪凯
 * @description : 字典代码配置
 * @since : 2022年 12月 06日 16:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "code_config")
public class CodeConfig {
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(generator = GlobalConstant.ID_GENERATOR_NANO)
    @GenericGenerator(name = GlobalConstant.ID_GENERATOR_NANO, strategy = GlobalConstant.ID_GENERATOR_NANO_PATH)
    private String codeConfigId;

    /**
     * 代码
     */
    @Column(name = "code")
    private String code;

    /**
     * 代码值
     */
    @Column(name = "code_value")
    private String codeValue;

    /**
     * 代码内容
     */
    @Column(name = "code_content")
    private String codeContent;

    /**
     * 上级代码
     */
    @Column(name = "superior_code")
    private String superiorCode;


}
